const mongoose = require('mongoose')
const menuSchema = mongoose.Schema({
  menuId: String,
  path: String,
  roles: [],
  menuType: Number, // 菜单类别：0-菜单，1-按钮
  component: String,
  redirect: String,
  createTime: String, // 创建时间
  meta: {
    title: String,
    icon: String,
    roleid: []
  },
  children: []
})

module.exports = mongoose.model('menus', menuSchema, 'menus')
